home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-19 | 1.2 KB | 30 lines | [TEXT/GEOL] |
- Item forwarded by LEFFLER1 to RODSETH.R
-
- Item forwarded by ALCABES to CPLUS.APPLE$
-
- Item 4022261 18-Jan-90 13:38
-
- From: GARDNER.P Gardner, Preston
-
- To: ALCABES Alcabes, Harvey
- CPLUS.DEV$ C++ Interest List--Developers
- D0578 Shiva,PRT
-
- Sub: Re: C++ and the "asm" keyword
-
- There are actually two answers to your question. One has been given already by
- Peter Marx (D4682): asm is not supported by MPW C++ because it's not supported
- by MPW C. What the compiler actually does is treat "asm" as a keyword that is
- not a part of the grammar, so that you can't declare a variable called "asm"
- but if you use the asm statement it will be a syntax error.
-
- The other answer is that your example is wrong; you have to put the assembly
- code in double quotes. Depending on what kind of C you are using, it may or
- may not be possible to break a quoted string over several lines. It is
- possible with ANSI C but not with older K&R C compilers. (I didn't try it with
- MPW C to see what it does. It's kind of irrelevant anyway.)
-
-
- I'd say, "Hope this helps," like Peter Marx did, but it probably doesn't help.
-
-